@charset "utf-8";

.web_box {
    //轮播图
    .index_kv {
        width: 100%;
        height: 400px;
        overflow: hidden;
        margin-bottom: 50px;
        box-shadow: 0 10px 15px rgba(175, 23, 48, .1);
        img{
            width: 100%;
        }
    }
    //目录
    >p{
        margin-bottom: 10px;
        margin-top: 50px;
        img{
            vertical-align: middle;
            margin-left: 12px;
        }
        a{
            color: #af1730;
        }
        a:last-child{
            color: #999;
        }
    }
    //产品
    .product-menu {
        text-align: center;
        .listTitle{
            position: relative;
            float: right;
            height: 44px;
            line-height: 44px;
            min-width: 120px;
            margin-right: 3px;
            padding: 0 15px;
            z-index: 1;
            &:hover{
                cursor: pointer;
                ul{
                    display: block;
                }
            }
            >p{
                font-size: 16px;
                color: #AF1730;
                font-weight: bold;
                span:nth-child(2){
                    padding: 0 20px;
                }
                img{
                    vertical-align: middle;
                    margin-left: 5px;
                }
                &:after{
                    position: absolute;
                    right: 0px;
                    top: 18px;
                    content: "";
                    display: block;
                    width: 0;
                    height: 0;
                    border-top: 10px solid #AF1730;
                    border-left: 10px solid transparent;
                    border-right: 10px solid transparent;
                }
                span:first-child{
                    position: absolute;
                    top: 21px;
                    left: 0px;
                    width: 17px;
                    height: 3px;
                    background: #AF1730;
                    &:before,&:after{
                        content: "";
                        position: absolute;
                        top: -6px;
                        left: 0;
                        width: 17px;
                        height: 3px;
                        background: #AF1730;
                    }
                    &:after{
                        top: 6px;
                    }
                }
            }
            
            >ul{
                display: none;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                background: #fff;
                border: 1px solid #AF1730;
//              z-index: 999;
                li{
                    text-align: left;
                    max-width: 180px;
                    padding: 0 20px;
                    height: 39px;
                    border-bottom: 1px solid #e5e5e5;
                    a{
                        display: block;
                        margin: 0 auto;
                        overflow: hidden;
                        font-size: 14px;
                        font-weight: bold;
                        color: #a8a8a8;
                        white-space:nowrap;
                        text-overflow:ellipsis;
                    }
                }
                li:hover{
                    background: #e1958f;
                    border-bottom: 1px solid #e1958f;
                    a{
                        color: #fff;
                    }
                }
            }
        }
        .product-title{
            position: relative;
            display: inline;
            margin-top: 20px;
            font-size: 26px;
            font-weight: bold;
            color: #AF1730;
            &:before,&:after{
                position: absolute;
                top: 50%;
                left: -20px;
                margin-top: -5px;
                content: "";
                width: 0;
                height: 0;
                display: block;
                border-top:5px solid #AF1730;
                border-bottom:5px solid #AF1730;
                border-right:5px solid #AF1730;
                border-left:5px solid #AF1730;
                transform: rotate(45deg);
            }
            &:after{
                left: 108%;
            }
        }
        .product_box {
            padding: 32px 0 0;
            ul {
                li {
                    width: 20%;
                    margin-bottom: 86px;
                    a {
                        .product_info {
                            width: 178px;
                            margin: 0 auto;
                            max-height: 216px;
                            text-align: center;
                            box-shadow: 0 10px 15px rgba(175, 23, 48, .1);
                            padding: 16px 0 46px;
                            position: relative;
                            overflow: hidden;
                            img {
                                height: 187px;
                                margin-top: 12px;
                            }
                            p {
                                font-size: 14px;
                            }
                            .triangle {//倒三角
                                position: absolute;
                                top: 0;
                                left: 50%;
                                transform: translateX(-50%);
                                border-top: 30px solid;
                                border-left: 30px solid transparent;
                                border-right: 30px solid transparent;
                            }
                            &:hover {
                                transform: scale(1.1);
                            }
                        }
                    }
                    &:nth-child(1) a {
                        color: #babaca;
                    }
                    &:nth-child(1) .triangle {
                        border-top-color: #babaca;
                    }
                    &:nth-child(2) a {
                        color: #86b6db;
                    }
                    &:nth-child(2) .triangle {
                        border-top-color: #86b6db;
                    }
                    &:nth-child(3) a {
                        color: #c24b8c;
                    }
                    &:nth-child(3) .triangle {
                        border-top-color: #c24b8c;
                    }
                    &:nth-child(4) a {
                        color: #ef7f00;
                    }
                    &:nth-child(4) .triangle {
                        border-top-color: #ef7f00;
                    }
                    &:nth-child(5) a {
                        color: #6f3379;
                    }
                    &:nth-child(5) .triangle {
                        border-top-color: #6f3379;
                    }
                }
            }
            .product_btn {
                display: inline-block;
                width: 265px;
                background: #af1730;
                color: #fff;
                font-size: 18px;
                text-align: center;
                line-height: 83px;
                opacity: .8;
                &:hover {
                    opacity: 1;
                }
            }
        }
    }
}